package com.example.test;

import org.apache.tomcat.jni.Buffer;

public class One_Buffer {
    public static void main(String[] args) {
        StringBuffer a = new StringBuffer("A");
        StringBuffer b = new StringBuffer("B");
        operator(a,b);
    }

    private static void operator(StringBuffer a, StringBuffer b) {
        a.append(b);
        b=a;
        System.out.println(a  );//AB
        System.out.println(b  );//AB
    }
}
